import request from '@/utils/request'
import qs from 'qs'

/**
 * 免填日报白名单
 */

/**
 * GET /stayDailySum/queryList 分页查询获取
 */
export function queryList(query) {
  return request({
    url: '/api/admin/stayDailySum/queryList?' + qs.stringify(query),
    method: 'get'
  })
}

/**
 * POST /stayDailySum/batchIgnore 一键清零
 */
export function batchIgnore(list) {
  return request({
    url: '/api/admin/stayDailySum/batchIgnore',
    method: 'POST',
    data: list
  })
}

/**
 * get /stayDailySum/queryItem 查询待提交日报数量
 */
export function queryItem(query) {
  return request({
    url: '/api/admin/stayDailySum/queryItem?' + qs.stringify(query),
    method: 'get'
  })
}


/**
 * put /stayDailySum/batchUpdateItem 修改待提交日报数量
 */
export function batchUpdateItem(query) {
  return request({
    url: '/api/admin/stayDailySum/batchUpdateItem',
    method: 'put',
    data: query
  })
}

export function getToDoDailyReport() {
  return request({
    url: '/api/admin/stayDailySum/getToDoDailyReport',
    method: 'get'
  })
}

/**
 *批量忽略所有人by日报的日期
 */
export function ignoreByDate(list) {
  return request({
    url: '/api/admin/stayDailySum/ignoreByDate',
    method: 'POST',
    data: list
  })
}





